package com.eden.controller;

import com.eden.common.R;
import com.eden.dto.LoginParam;
import com.eden.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/register")
public class RegisterController {

    @Autowired
    private LoginService loginService;

    @PostMapping
    public R register(@RequestBody LoginParam loginParam){

        return loginService.register(loginParam);
    }

}
